home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1865 / 1865.xpi / chrome / adblockplus.jar / content / ui / composer.xul < prev    next >
Extensible Markup Language  |  2010-01-07  |  6KB  |  127 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- ***** BEGIN LICENSE BLOCK *****
  4.      - Version: MPL 1.1
  5.      -
  6.      - The contents of this file are subject to the Mozilla Public License Version
  7.      - 1.1 (the "License"); you may not use this file except in compliance with
  8.      - the License. You may obtain a copy of the License at
  9.      - http://www.mozilla.org/MPL/
  10.      -
  11.      - Software distributed under the License is distributed on an "AS IS" basis,
  12.      - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.      - for the specific language governing rights and limitations under the
  14.      - License.
  15.      -
  16.      - The Original Code is Adblock Plus.
  17.      -
  18.      - The Initial Developer of the Original Code is
  19.      - Wladimir Palant.
  20.      - Portions created by the Initial Developer are Copyright (C) 2006-2009
  21.      - the Initial Developer. All Rights Reserved.
  22.      -
  23.      - Contributor(s):
  24.      -
  25.      - ***** END LICENSE BLOCK ***** -->
  26.  
  27. <!DOCTYPE overlay SYSTEM "chrome://adblockplus/locale/composer.dtd">
  28.  
  29. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  30. <?xml-stylesheet href="chrome://adblockplus/skin/composer.css" type="text/css"?>
  31.  
  32. <dialog id="abp-composer"
  33.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  34.         title="&dialog.title;"
  35.         onload="init()"
  36.         ondialogaccept="return addFilter()"
  37.         ondialogdisclosure="setAdvancedMode(!advancedMode)"
  38.         buttons="accept,cancel,disclosure"
  39.         width="800px"
  40.         height="400px"
  41.         persist="screenX screenY width height sizemode advancedMode"
  42.         advancedMode="false"
  43.         buttonlabelaccept="&accept.label;"
  44.         buttonlabeldisclosure="&advanced.label;"
  45.         buttonlabeldisclosure_on="&advanced.label;"
  46.         buttonlabeldisclosure_off="&basic.label;"
  47.         windowtype="abp:composer">
  48.  
  49.     <script type="application/x-javascript;version=1.7" src="utils.js"/>
  50.     <script type="application/x-javascript;version=1.7" src="composer.js"/>  
  51.     
  52.     <popupset>
  53.         <tooltip id="domainRestrictionHelp" label="&domainRestriction.help;"/>
  54.     </popupset>
  55.  
  56.     <description id="disabledWarning" hidden="true">
  57.         &disabled.warning.beforeLink;<label class="text-link" value="&disabled.warning.link;" onclick="doEnable()"/>&disabled.warning.afterLink;
  58.     </description>
  59.  
  60.     <description id="groupDisabledWarning" textTemplate="&groupDisabled.warning.beforeLink;" hidden="true">
  61.         dummy <label class="text-link" value="&groupDisabled.warning.link;" onclick="enableSubscription(this.parentNode.subscription)"/>&groupDisabled.warning.afterLink;
  62.     </description>
  63.  
  64.     <hbox id="filterBox" align="center">
  65.         <label control="filter" value="&filter.label;" accesskey="&filter.accesskey;"/>
  66.         <textbox id="filter" flex="1" tabindex="-1" readonly="true"/>
  67.         <button id="preferences" label="&preferences.label;" accesskey="&preferences.accesskey;" oncommand="openPreferences()"/>
  68.     </hbox>
  69.  
  70.     <radiogroup orient="horizontal" id="filterType" oncommand="updateFilter()">
  71.         <radio label="&type.filter.label;" accesskey="&type.filter.accesskey;" value="filterlist" flex="1"/>
  72.         <radio label="&type.whitelist.label;" accesskey="&type.whitelist.accesskey;" value="whitelist" flex="1"/>
  73.     </radiogroup>
  74.  
  75.     <hbox flex="1">
  76.         <groupbox id="pattern" flex="1">
  77.             <caption label="&pattern.label;"/>
  78.             <radiogroup id="patternGroup" flex="1" oncommand="updatePatternSelection()" style="overflow: auto;">
  79.                 <description id="patternExplanation">&pattern.explanation;</description>
  80.                 <description id="regexpWarning" hidden="true">®exp.warning;</description>
  81.                 <description id="shortpatternWarning" hidden="true">&shortpattern.warning;</description>
  82.                 <hbox id="customPatternBox">
  83.                     <radio id="customPatternRadio" label="&custom.pattern.label;" accesskey="&custom.pattern.accesskey;" value="" control="customPattern"/>
  84.                     <textbox id="customPattern" flex="1" oninput="updateCustomPattern()"/>
  85.                 </hbox>
  86.             </radiogroup>
  87.             <hbox id="anchorGroup" pack="start" align="center">
  88.                 <label value="&anchors.label;"/>
  89.                 <checkbox id="anchorStart" labelRegular="&anchor.start.label;" accesskeyRegular="&anchor.start.accesskey;"
  90.                                                                      labelFlexible="&anchor.start.flexible.label;" accesskeyFlexible="&anchor.start.flexible.accesskey;"
  91.                                                                      oncommand="updateFilter()"/>
  92.                 <checkbox id="anchorEnd" label="&anchor.end.label;" accesskey="&anchor.end.accesskey;" oncommand="updateFilter()"/>
  93.             </hbox>
  94.         </groupbox>
  95.         <groupbox id="options">
  96.             <caption label="&options.label;"/>
  97.             <checkbox id="firstParty" label="&firstParty.label;" accesskey="&firstParty.accesskey;" oncommand="updateFilter()"/>
  98.             <checkbox id="thirdParty" label="&thirdParty.label;" accesskey="&thirdParty.accesskey;" oncommand="updateFilter()"/>
  99.             <checkbox id="matchCase" label="&matchCase.label;" accesskey="&matchCase.accesskey;" oncommand="updateFilter()"/>
  100.             <hbox align="baseline">
  101.                 <checkbox id="domainRestrictionEnabled" label="&domainRestriction.label;" accesskey="&domainRestriction.accesskey;" oncommand="updateFilter()"/>
  102.                 <description class="help" value="?" tooltip="domainRestrictionHelp"/>
  103.             </hbox>
  104.             <textbox id="domainRestriction" oninput="updateFilter()"/>
  105.  
  106.             <label id="typeGroupLabel" value="&types.label;"/>
  107.             <hbox>
  108.                 <label id="selectAllTypes" class="text-link" value="&selectAllTypes.label;" onclick="selectAllTypes(true)"/>
  109.                 <spacer flex="1"/>
  110.                 <label id="unselectAllTypes" class="text-link" value="&unselectAllTypes.label;" onclick="selectAllTypes(false)"/>
  111.             </hbox>
  112.             <vbox flex="1" id="typeGroup"/>
  113.  
  114.             <vbox>
  115.                 <label control="collapse" value="&collapse.label;" accesskey="&collapse.accesskey;"/>
  116.                 <menulist id="collapse" oncommand="updateFilter()">
  117.                     <menupopup>
  118.                         <menuitem id="collapseDefault" value="" label_yes="&collapse.default.yes.label;" label_no="&collapse.default.no.label;" selected="true"/>
  119.                         <menuitem label="&collapse.yes.label;" value="collapse"/>
  120.                         <menuitem label="&collapse.no.label;" value="~collapse"/>
  121.                     </menupopup>
  122.                 </menulist>
  123.             </vbox>
  124.         </groupbox>
  125.     </hbox>
  126. </dialog>
  127.